#This program contains free software licensed under a number of licenses, including the GNU Lesser General Public License.
#A complete list of software is available at http://www.renpy.org/doc/html/license.html.

#My Sweet Neighbors

init -2:
    #screens
    image go_b = "screens/go_b.png"
    image go_d = "screens/go_d.png"
    image go_m = "screens/go_m.png"
    image warning = "screens/warning.png"
    image endscreen = "screens/endscreen.png"
    image splash = "screens/warning.png"
    image nameh = "screens/namemain.png"
    image named = "screens/named.png"
    image namem = "screens/namem.png"
    image lovemeter = "screens/lovemeter.png"
    image love_meter = "screens/love_meter.png"
    image intro = "screens/intro.png"
    image 0000 = "screens/0000.jpg"
    #intro
    image 0001 = "001/intro/0001_desk_intro.jpg"
    image 0002 = "001/intro/0002_desk_coffee.jpg"
    image 0003 = "001/intro/0003_kitchen_goto.jpg"
    image 0003a = "001/intro/0003a_kitchen_goto.jpg"
    image 0003b = "001/intro/0003b_desk_intro.jpg"
    image 0004 = "001/intro/0004_door_look.jpg"
    image 0004a = "001/intro/0004a_door_goto.jpg"
    
#Characters
define D = Character("[daughter]", color = "#ffb4b4")
define Y = Character("[you]", color = "#5d74ff")
define M = Character("[mother]", color = "#ff8e8e")
define U = Character("Voice", color = "#ffb4b4")
define P = Character("Delivery guy")
define J = Character("Jessica", color = "#ff8e8e")
define Yumi = Character("Yumi", color = "#ff8e8e")
define Marg = Character("Margaret", color = "#ff8e8e")
define B = Character("Mr. Druthers", color = "#1b3bff")
define C = Character("Checkout girl")
define W = Character("Waitress")
define R = Character("Receptionist")
define Bell = Character("Bellhop")
define T = Character("Trevor", color = "#1b3bff")
define Mass = Character("Masseuse")
define Miko = Character("Miko", color = "#ff8e8e")

init python:    
    #Points
    dfriend_Points = 0
    dlove_Points = 0
    mfriend_Points = 0
    mlove_Points = 0
    marg_Points = 0
    jess_Points = 0
    #yumi_Points = 0
    miko_Points = 0
    
#Points   
screen Love_meter:
    zorder 100
    add "screens/love_meter.png"
    if dlove_Points < 10:
        $ dlpos = .881
    elif dlove_Points < 100:
        $ dlpos = .876
    elif dlove_Points < 1000:
        $ dlpos = .871
    text "[dlove_Points]" xpos dlpos ypos .120
    if dfriend_Points < 10:
        $ dfpos = .852
    elif dfriend_Points < 100:
        $ dfpos = .847
    elif dfriend_Points < 1000:
        $ dfpos = .842
    text "[dfriend_Points]" xpos dfpos ypos .165
    if mlove_Points < 10:
        $ mlpos = .960
    elif mlove_Points < 100:
        $ mlpos = .955
    elif mlove_Points < 1000:
        $ mlpos = .950
    text "[mlove_Points]" xpos mlpos ypos .120
    if mfriend_Points < 10:
        $ mfpos = .931
    elif mfriend_Points < 100:
        $ mfpos = .926
    elif mfriend_Points < 1000:
        $ mfpos = .921
    text "[mfriend_Points]" xpos mfpos ypos .165
    
label GameInit:    
    scene nameh
    $ you = renpy.input("")
    $ you = you.strip()
    hide nameh
    scene named
    $ daughter = renpy.input("")
    $ daughter = daughter.strip()
    hide named
    scene namem
    $ mother = renpy.input("")
    $ mother = mother.strip()
    window hide
    hide namem
    with Dissolve(1.0)
    return    
    
label GameEnd:
    scene endscreen
    with Dissolve(1.0)
    $ renpy.pause()
    scene black
    with Dissolve(0.5)
    $ MainMenu(False)
    return
    
label splashscreen:
    scene black 
    with Pause(1)
    show splash with dissolve
    $ renpy.pause()
    scene black with dissolve
    with Pause(1)
    return
    
label after_load:
    $ renpy.block_rollback()
    hide lovemeter onlayer screens
    window hide
    show screen Love_meter
    return    
    
label start:
    call GameInit from _call_GameInit
    # Introduction
    show intro onlayer screens
    scene 0003a
    with Dissolve(1.0)
    window hide
    centered "You are [you], a guy in his late-thirties who recently went through a divorce."
    centered "After 12 years of marriage it was time for a change..."
    scene 0003
    window hide
    centered "Now, you have lived in your new apartment for 2 weeks and most of your neighbors have been very friendly. Especially [mother] who lives next door whom you have met a few times in the hallway."
    centered "One thing you know is that she has an 18 year old daughter!"
    scene 0003b
    window hide
    centered "Today you will meet her for the first time. Perhaps she's the key to get to know [mother] better..."
    centered "...or - if you are enough of a gentleman - maybe you hit the jackpot!"
    hide intro onlayer screens
    scene black
    with Dissolve(1.0)
    scene 0001
    with Dissolve(1.0)
    show screen Love_meter
    Y "{i}(I'm almost done with this sales report! I hope everything will be ok with it.){/i}"
    Y "{i}(My new Boss is overly demanding about this stuff.){/i}"
    scene 0002
    Y "{i}(First though, I need more coffee!){/i}"
    Y "{i}(I'm getting hungry too. I didn't eat much today.){/i}"
    Y "{i}(Maybe I'll order a pizza later.){/i}"
    scene 0003
    Y "{i}(Jeez my new apartment looks so empty. It is time to buy more stuff.){/i}"
    scene 0003a
    Y "{i}(My new neighbors are so nice. Especially [mother]!){/i}"
    Y "{i}(I wonder if she's married... I've never seen her with a man.){/i}"
    call Chapter001 from _call_Chapter001
